home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
3_0
/
RAMSTART
/
RS.H
< prev
next >
Wrap
Text File
|
1988-01-13
|
2KB
|
79 lines
/*
RS.h
Part of RS(Main).c
*/
#define MAXLINE 256
/* The "." says DRVR. The refNum is found from the resource ID. */
#define RamName "\p.ramdisk"
#define MinHeap ((long)65*1024)
#define MinDisk (6*1024)
#define SigWord 1024
/*-- bit-coded contsants set by file copying routines */
#define HadSystem 1
#define HadFinder 2
enum { alrtError = 128, alrtDidntFit, alrtThinNoRoom, alrtFatNoRoom,
alrtSizeChange = 133, alrtDiskProt, alrtBadName, alrtAlreadyCopied };
enum { dlogCtl = 256, dlogHelp, dlogAlready, dlogThreat };
enum { alreadyIQuit = 1, alreadyIRemove, alreadyINew, alreadyIOutline,
alreadyIText, alreadyIBoot };
enum { didntfitICancel = 1, didntfitIContinue };
enum { alreadyCopiedOK = 1, alreadyCopiedCancel };
/* Items of the Ctl and Help dialogs. Both must use the same scroll bar
item number! Other item numbers are used in equally rude ways. TestDLOG()
scans from ctlISet to ctlIHelp. */
enum { ctlISet = 1, ctlIScroll, ctlIEdit, ctlICancel, ctlIHelp, ctlIBigDir,
ctlIInstall, ctlIK, ctlIFile, ctlIOutline, ctlICopyMsg, ctlIOpenMsg };
enum { helpIContinue = 1, helpIScroll, helpIText, helpIName,
helpITOutline, helpIOutline, helpIIcon, helpStarting, helpUsage,
helpScripts, helpWondering, helpGetting, helpBCS };
#define dlogIScroll 2
/* Low memory locations named as variables: */
/*-- MemTop for a thin Mac, 128K */
#define ThinMemTop ((char *)0x20000L)
/*-- Ptr to Application scratch area, used here to remember old BufPtr. */
#define ApplScratch (*(long *)0xA78)
/*-- We want to know if there is a debugger in memory. This seems like a good guess. */
#define TraceTrap (*(char **)0x024)
/* // */
typedef struct {
char *ramDisk; /* Ptr to RAM disk. =BufPtr */
char *oldBufPtr; /* For restoring BufPtr. */
struct QElem *drvQEntry; /* Ptr to drive queue entry. */
} RamInfo;
typedef struct {
long signature;
RamInfo **ramInfoh;
} RamStatus;
#define RamSignature 'GANr'
/* Use Clear() macro to clear structures and typedef'ed stuff. */
/* Use aClear to clear arrays -- remember to pass the size! */
#define Clear(x) aClear( &(x), sizeof(x) )
char PstrMatch();
short OurDriveNum();
short GetDriverNum( /* drive # */ );
#define NewPtrSysClr( size ) (*(Ptr (*)())NewPtrSysClrCode)( (long)(size) )
extern short NewPtrSysClrCode[];